package com.share.domain.activity.service.quota;

import com.share.domain.activity.model.entity.ActivityCountEntity;
import com.share.domain.activity.model.entity.ActivityEntity;
import com.share.domain.activity.model.entity.ActivitySkuEntity;
import com.share.domain.activity.repository.IActivityRepository;
import com.share.domain.activity.service.quota.rule.factory.DefaultActionChainFactory;

/**
 *  抽奖活动的支撑类
 */
public class RaffleActivityAccountQuotaSupport {
    protected DefaultActionChainFactory defaultActionChainFactory;
    protected IActivityRepository activityRepository;

    public RaffleActivityAccountQuotaSupport(IActivityRepository activityRepository, DefaultActionChainFactory defaultActionChainFactory)
    {
        this.defaultActionChainFactory=defaultActionChainFactory;
        this.activityRepository=activityRepository;
    }

    public ActivitySkuEntity queryActivitySku(Long sku){
        return activityRepository.queryActivitySku(sku);
    }

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId){
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId){
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }
}
